package edu.iul.daam.rap;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RatingBar;
import android.widget.ScrollView;
import android.widget.Toast;

public class OptionMenuAreaActivity extends Activity implements OnClickListener{

	RatingBar ratingbar_sports;
	RatingBar ratingbar_movies;
	RatingBar ratingbar_music;
	RatingBar ratingbar_science;
	RatingBar ratingbar_health;
	RatingBar ratingbar_economics;
	RatingBar ratingbar_culture;
	RatingBar ratingbar_politics;
	RatingBar ratingbar_entertainment;
	RatingBar ratingbar_nacionalnews;
	RatingBar ratingbar_internationalnews;
	RatingBar ratingbar_nature;
	Button button_ok;
	ScrollView scroll;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layoutareas);
		
		ratingbar_sports = (RatingBar) findViewById(R.id.ratingBar_sports);
		//ratingbar.setOnClickListener(this);
		ratingbar_movies = (RatingBar) findViewById(R.id.ratingBar_movies);
		ratingbar_music = (RatingBar) findViewById(R.id.ratingBar_music);
		ratingbar_science = (RatingBar) findViewById(R.id.ratingBar_science);
		ratingbar_health = (RatingBar) findViewById(R.id.ratingBar_health);
		ratingbar_economics = (RatingBar) findViewById(R.id.ratingBar_economics);
		ratingbar_culture = (RatingBar) findViewById(R.id.ratingBar_culture);
		ratingbar_politics = (RatingBar) findViewById(R.id.ratingBar_politics);
		ratingbar_entertainment = (RatingBar) findViewById(R.id.ratingBar_entertainment);
		ratingbar_nacionalnews = (RatingBar) findViewById(R.id.ratingBar_nacionalnews);
		ratingbar_internationalnews = (RatingBar) findViewById(R.id.ratingBar_internationalnews);
		ratingbar_nature = (RatingBar) findViewById(R.id.ratingBar_nature);
		
		scroll = (ScrollView)findViewById(R.id.scrollareas);
		
		button_ok = (Button) findViewById(R.id.area_ok);
		button_ok.setOnClickListener(this);
	}
	
	public void onClick(View view) {
		switch(view.getId()){
		case R.id.area_ok:
			finish();
			break;
		}
	}
}
